package com.company;

import java.io.File;
import java.io.IOException;

/**
 * @date : 2023-12-21 下午7:59
 */

public class P067_FileExists {

    public static void main(String[] args) throws IOException {
        File file = new File("file/book.txt");
        File newFile = new File("file/book.txt");
        System.out.println(newFile.createNewFile());
        System.out.println(file.exists());
        System.out.println(file.delete());
    }

}
